// 车险计费数据重构中间件
import chargingRestructrue from './car_charging_restructrue_fn'

export default (ctx, next) =>{
    
    // 防止计费返回数据为 null
    let quotations = ctx.params.Dquotations;
    ctx.params.Dquotations = quotations ? chargingRestructrue(quotations) : [];
        
    next()
}
